package com.buddy.learn.source._static;

import java.util.ArrayList;
import java.util.List;

/**
 * @author Buddy
 * @date 2021/1/22 17:08
 */
public class Child extends Parent {

    public static List CHILD_LIST = new ArrayList(){{System.out.println("child 静态变量初始化");}};

    static {
        System.out.println("child 静态代码块初始化");
    }

    public Child() {
        System.out.println("child constructor init!");
    }

    public static void testStatic(){
        System.out.println("child static method!");
    }

    public static void main(String[] args){
        System.out.println("execute main...");
        new Child();
    }
}
